-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor getDeviceName() for readability #6319
Conversation
Cloudflare Pages deployment
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESLint doesn't pass. Please fix all ESLint issues.
Quality Gate passedIssues Measures |
Refactored a long if-else into a cleaner, easier to extend mapping
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Renamed deviceMappings to BrowserName and moved it under the appName declaration as requested
Quality Gate passedIssues Measures |
* Refactor getDeviceName() for readability Refactored a long if-else into a cleaner, easier to extend mapping * Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Move BrowserName to the top of the file Renamed deviceMappings to BrowserName and moved it under the appName declaration as requested --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Refactor getDeviceName() for readability Refactored a long if-else into a cleaner, easier to extend mapping * Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Move BrowserName to the top of the file Renamed deviceMappings to BrowserName and moved it under the appName declaration as requested --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Refactored a long if-else into a cleaner, easier to extend mapping
Changes
Issues
No GitHub issue previously associated, found it on SonarCloud